﻿<div class="home-page">
    <div class="wkf-nav-left">
        <div>
            <h3>领导审批通知</h3>
            <ul>
                <li ng-class="{'selected' : pageConfig.activeNav === 'todo'}"><a ng-click="onChangeTemplate('todo')">待处理的通知</a></li>
                <li ng-class="{'selected' : pageConfig.activeNav === 'done'}"><a ng-click="onChangeTemplate('done')">已处理过的通知</a></li>
            </ul>
        </div>
    </div>
    <div class="main-area">
        <h2>共有{{paginationConf.totalItems}}条{{pageHeader[pageConfig.activeNav]}}</h2>
        <div class="search">
            <div class="search-condition">
                <div class="form-inline">
                    <div class="form-group">
                        <label for="lwwh">来文文号：</label>
                        <input type="text" class="form-control form-control-sm middle" id="lwwh" ng-model="pageSearch.DocumentNumber" ng-keyup="enterEvent($event)">
                    </div>
                    <div class="form-group">
                        <label for="title">公文标题：</label>
                        <input type="text" class="form-control form-control-sm large" id="title" ng-model="pageSearch.QueryCondition" ng-keyup="enterEvent($event)">
                    </div>
                </div>
            </div>

            <div class="search-action">
                <button type="submit" class="btn btn-default btn-sm btn-search" ng-click="onReset()">重置</button>
                <button type="submit" class="btn btn-info btn-sm btn-search" ng-click="onLeaderSearch()">查询</button>
            </div>
        </div>
        <table class="table">
            <thead>
                <tr>
                    <th ng-repeat="title in titleObj">{{title}}</th>
                </tr>
            </thead>
            <tbody>
                <tr ng-if="pageConfig.activeNav === 'todo' && activeTableData.length > 0" ng-repeat="row in activeTableData">
                    <td>{{($index+1)+(pageSearch.PageNumber-1)*pageSearch.PageSize}}</td>
                    <td>{{row.DocumentNumber || '----'}}</td>
                    <td title="{{row.DocumentTitle}}" class="item-lg">
                        <a class="text-info" href="/Apps/Tiger/Workflow/LeaderNotifyDetail?MessageId={{row.MessageId}}" target="_blank">{{row.DocumentTitle || '----'}}</a>
                    </td>
                    <td><p ng-repeat="item in row.Users.split(',') track by $index">{{item}}</p></td>
                    <td><p ng-repeat="item in row.Opinion.split(',') track by $index">{{item}}</p></td>
                    <td><p ng-repeat="item in row.CreateTime.split(',') track by $index">{{item}}</p></td>
                </tr>
                <tr ng-if="pageConfig.activeNav === 'done' && activeTableData.length > 0" ng-repeat="row in activeTableData">
                    <td>{{($index+1)+(pageSearch.PageNumber-1)*pageSearch.PageSize}}</td>
                    <td>{{row.DocumentNumber || '----'}}</td>
                    <td title="{{row.DocumentTitle}}" class="item-lg">
                        <a class="text-info" href="/Apps/Tiger/Workflow/LeaderNotifyDetail?MessageId={{row.MessageId}}" target="_blank">{{row.DocumentTitle || '----'}}</a>
                    </td>
                    <td><p ng-repeat="item in row.Users.split(',') track by $index">{{item}}</p></td>
                    <td><p ng-repeat="item in row.Opinion.split(',') track by $index">{{item}}</p></td>
                    <td><p ng-repeat="item in row.CreateTime.split(',') track by $index">{{item}}</p></td>
                </tr>
                <tr ng-if="!activeTableData.length">
                    <td colspan="{{titleObj.length}}">无【{{pageHeader[pageConfig.activeNav]}}】</td>
                </tr>
            </tbody>
        </table>
        <tm-pagination conf="paginationConf"></tm-pagination>
    </div>
</div>
<div id="dlg-date-selector" class="div-dlg">
    从：<input type="text" id="date-from" class="date-value" /><br />
    <br />
    至：<input type="text" id="date-to" class="date-value" />
</div>
